﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Commons.Entity;
using EF.Commons.Background.Entity;

namespace Common.Background.Service
{
    public interface IWebDepartmentsServices
    {
        /// <summary>
        /// 得到部门
        /// </summary>
        /// <param name="WebDepartments"></param>
        WebDepartments GetWebDepartments(WebDepartments WebDepartments);

        /// <summary>
        /// 添加或设置部门
        /// </summary>
        /// <param name="WebDepartments"></param>
        void SetWebDepartments(WebDepartments WebDepartments);

        /// <summary>
        /// 添加部门
        /// </summary>
        /// <param name="WebDepartments"></param>
        void AddWebDepartments(WebDepartments WebDepartments);

        /// <summary>
        /// 删除部门
        /// </summary>
        /// <param name="WebDepartments"></param>
        void DeleteWebDepartments(WebDepartments WebDepartments);

        /// <summary>
        /// 返回部门列表
        /// </summary>
        /// <param name="WebDepartments"></param>
        /// <param name="vp"></param>
        /// <returns></returns>
        System.Collections.Generic.List<WebDepartments> WebDepartmentsList(WebDepartments WebDepartments, VPredication vp);
    }
}
